package com.didispace.service;

import com.didispace.domain.Ebook;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface BookService {

    int save(Ebook ebook);

    int delete(Long id);

    int update(Long id, Ebook ebook);

    Ebook findById(Long id);

    Ebook findByName(String name);

    List<Ebook> findByNameLike(String name);

    List<Ebook> findAll();
}
